﻿using System;
using System.Web.Mvc;
using System.Web.Routing;
using MvcContrib.TestHelper;
using NUnit.Framework;
using Smarly.Web.App_Start;
using Smarly.Web.Controllers;

namespace Smarly.Web.Test
{
	[TestFixture]
	public class UnitTest1
	{
		[TestFixtureSetUp]
		public void TestMethod1()
		{
			RouteTable.Routes.Clear();
			AreaRegistration.RegisterAllAreas();
			RouteConfig.RegisterRoutes(RouteTable.Routes);
		}

		[Test]
		public void root_maps_to_home_index()
		{
			"~/".ShouldMapTo<HomeController>(x => x.Index());
		}
	}
}
